package diaosidadui.opp04;

import java.util.Scanner;

public class MainApp {
    public static void main(String[] args) {

        System.out.println(getStudent());
    }
    //返回一个储存学生信息的对象
    public static Student getStudent() {
        Scanner sc = new Scanner(System.in);
        Student st = new Student();
        System.out.println("请输入学员编号:");
        st.setId(sc.next());
        System.out.println("请输入学员姓名");
        st.setName(sc.next());
        System.out.println("请输入学员性别");
        st.setGender(sc.next());
        System.out.println("请输入学员身高");
        st.setHeight(sc.nextDouble());
        System.out.println("请输入学员年龄");
        st.setAge(sc.nextInt());
        return st;
    }

}
